''' 编写一个员工类(Employee), 每次实例化该类后会自动记录+1，
要求最后统计输出员工类总共实例化了多少对象 '''

class Employee:
    pub = globals()
    pub['count'] = 0
    def __init__(self):
        self.pub['count'] += 1
        print('初始化了%d次对象' %self.pub['count'])

for i in range(3):
    Employee()
